window.addEventListener('load',function() {
	$('#title').append("<h1>" + capitalise(localStorage.getItem("estudia_course")) + "</h1>");
	
	$('#courses_lesson').click(function(){
		localStorage.setItem("estudia_type", "materi");
		window.location.href = '3-pilihanbab.html';
	});	
	
	$('#courses_quiz').click(function(){
		localStorage.setItem("estudia_type", "soal");
		window.location.href = '3-pilihanbab.html';
	});
	
});

function capitalise(string) {
	return string.charAt(0).toUpperCase() + string.slice(1);
};